package com.xbongbong.saas.enums.business;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 工作计划目前展示需要的数据
 *
 * @author long.rao
 * @version v1.0
 * @date 2019/3/4 10:45
 * @since v1.0
 */
@Getter
public enum WorkReportPlanEnum {
    // 工作报告的计划
    CONTENT("text_1", "enum.workReportPlan.alias.content", "content"),
    STATUS("text_2", "enum.workReportPlan.alias.status", "status"),
    ID("num_1", "enum.workReportPlan.alias.id", "id"),
    ;
    /**
     * 英文名
     */
    private String attr;
    /**
     * 中文名
     */
    private String alias;
    /**
     * 对应saas中的attr
     */
    private String saasAttr;

    WorkReportPlanEnum(String attr, String alias, String saasAttr) {
        this.attr = attr;
        this.alias = alias;
        this.saasAttr = saasAttr;
    }

    public String getAlias() {
        return I18nMessageUtil.getMessage(alias);
    }
}
